import request from '@/utils/request'

export function catCreate(data) {
  return request({
    url: '/goodsCatManage/goodsCat',
    method: 'post',
    data
  })
}

export function catList(){
  return request({
    url: '/goodsCatManage/goodsCat',
    method: 'get',
  })
}

export function catDelete(id){
  return request({
    url: '/goodsCatManage/goodsCat/' + id,
    method: 'delete',
  })
}

export function catUpdate(id,data){
  return request({
    url: '/goodsCatManage/goodsCat/' + id,
    method: 'put',
    data
  })
}
